#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include<QCamera>
#include<QCameraImageCapture>


class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
private:
    QCamera *camera;
    QCameraImageCapture *imageCapture;

private slots:
    void saveCaptureImage(int id, const QImage &preview);


};

#endif // WIDGET_H
